package com.dayou.service.impl;

import java.util.List;

import com.dayou.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dayou.mapper.PrisonerMapper;
import com.dayou.bean.Prisoner;
import com.dayou.service.IPrisonerService;

/**
 * 拘留人员基础 服务层实现
 * 
 * @author dayou
 * @date 2020-04-29
 */
@Service
public class PrisonerService implements IPrisonerService
{
	@Autowired
	private PrisonerMapper prisonerMapper;

	/**
     * 查询拘留人员基础信息
     * 
     * @param id 拘留人员基础ID
     * @return 拘留人员基础信息
     */
    @Override
	public Prisoner selectPrisonerById(String id)
	{
	    return prisonerMapper.selectPrisonerById(id);
	}
	
	/**
     * 查询拘留人员基础列表
     * 
     * @param prisoner 拘留人员基础信息
     * @return 拘留人员基础集合
     */
	@Override
	public List<Prisoner> selectPrisonerList(Prisoner prisoner)
	{
	    return prisonerMapper.selectPrisonerList(prisoner);
	}

	@Override
	public List<Prisoner> selectPrisonerByPrisonInIds(String ids) {
		return prisonerMapper.selectPrisonerByPrisonInIds(Convert.toStrArray(ids));
	}
}
